home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
4_0
/
WDFTST__
/
TEXTDISP.H
< prev
next >
Wrap
Text File
|
1990-06-11
|
780b
|
32 lines
#define INACTIVE 255
#define ACTIVE 0
#define TEXT_MARGIN 10
#ifndef GROW_ICON_SIZE
#define GROW_ICON_SIZE 16
#endif
#ifndef nil
#define nil 0L
#endif
typedef struct {
WindowRecord window;
TEHandle text;
int max_text;
int min_text;
} TD_record, *TD_peek;
WindowPtr TD_new(
int window_id, /* ID of WIND resource */
int max_text, /* keep at most this many characters */
int min_text, /* don't discard any text until so much */
int text_size, /* font size */
OsErr *status ); /* error code */
void TD_resize( WindowPtr the_display );
void TD_printf( WindowPtr the_display, char *format, ... );
void TD_update( WindowPtr the_display );
void TD_click( WindowPtr the_display, Point where );
void TD_activate( WindowPtr the_display, Boolean activate );